package define

import "github.com/dgrijalva/jwt-go"

type UserClaim struct {
	Id       int
	Identity string
	Name     string
	jwt.StandardClaims
}

func MailPassword() string {
	return "aoyehspuhcwzbeci"
}

var JwtKey = "cloud-disk-key"

// CodeLength 验证码长度
var CodeLength = 6

// CodeExpire 验证码过期时间(s)
var CodeExpire = 300

// Endpoint 存储区域
var Endpoint = "https://oss-cn-hangzhou.aliyuncs.com"

// OssAccessKeyId 对象存储Id
var OssAccessKeyId = "LTAI5tBmVys4tXPwG4j26VC2"

// OssAccessKeySecret 对象存储Secret
var OssAccessKeySecret = "n7HYtvW80AeiidNnu2vbPVn17WsxcM"

// Bucket 存储桶(可修改u、)
var Bucket = "mwh-cloud-disk"

// AccessPrefix 外网访问OSS对象路径前缀(建议不要修改)
var AccessPrefix = Bucket + ".oss-cn-hangzhou.aliyuncs.com/"

// PageSize 分页默认参数
var PageSize = 20

// Datetime 时间格式化
var Datetime = "2006-01-02 15:04:05"

// TokenExpire Token过期时间
var TokenExpire = 3600

// RefreshTokenExpire Token过期时间
var RefreshTokenExpire = 6400
